<?php
/**
* welcome developer.
* author: liangbo
* contact:173120209
* mobile:18550451730
* Date: 2017-01-24
* Time: 04:18
*/

class AdminModel extends Model {
//model封装方法查找
   function find($join, $columns=null, $where=null)
    {
        return $this->select($this->_table,$join, $columns, $where);
    }

//model封装方法增加

   function add($data)
    {
       return $this->insert($this->_table,$data);
    }

//model封装方法更新

   function upp($data,$where)
    {
      return $this->update($this->_table,$data,$where);
    }

//model封装方法删除

   function del($where)
    {
      return $this->delete($this->_table,$where);
    }

}
